package com.attendcollatesys.controller.excelcontroller;


import com.attendcollatesys.util.HolidayApiUtil;
import com.attendcollatesys.web.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/workday")
public class WorkDayController {

    @Autowired
    HolidayApiUtil holidayApiUtil;

    /**
     * 工作日表的初始化 只为测试阶段使用
     */
    @GetMapping("init")
    public ResponseResult<?> initWorkDay() throws Exception {
        holidayApiUtil.setHolidayDate();
        return ResponseResult.okResult();
    }

}
